package io.finer.erp.jeecg.stock.service;

import io.finer.erp.jeecg.stock.entity.StkProcessingRecord;
import io.finer.erp.jeecg.stock.entity.StkProcessingOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.jeecg.common.api.vo.Result;

/**
 * @Description: 代加工单
 * @Author: jeecg-boot
 * @Date:   2021-04-17
 * @Version: V1.0
 */
public interface IStkProcessingOrderService extends IService<StkProcessingOrder> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(StkProcessingOrder stkProcessingOrder,List<StkProcessingRecord> stkProcessingRecordList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(StkProcessingOrder stkProcessingOrder,List<StkProcessingRecord> stkProcessingRecordList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * @Description 代加工出库时查询代加工单
	 * @return
	 * Create at: 2021-04-22 10:06:20
	 * @author: duany
	 * Revision:
	 *    2021-04-22 10:06:20 - first revision by duany
	 *        
	 */
	public Result<?> processingOutGetOrder();

	/**
	 * @Description 代加工入库 获取代加工单
	 * @return
	 * Create at: 2021-04-22 10:11:38
	 * @author: duany
	 * Revision:
	 *    2021-04-22 10:11:38 - first revision by duany
	 *        
	 */
	public Result<?> processingInGetOrder();

	/**
	 * @Description 查询代加工单关联的物料分类
	 * @param processingId 代加工单ID
	 * @return
	 * Create at: 2021-04-23 11:46:33
	 * @author: duany
	 * Revision:
	 *    2021-04-23 11:46:33 - first revision by duany
	 *        
	 */
	public Result<?> getProcessingCategory(String processingId);
	
}
